<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
%>
<html>
<head>

<meta charset="utf-8" />
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0,user-scalable=0" />
<title>抱走宝山报名</title>
<link rel="stylesheet" href="<%=path%>/css/bootstrap.min.css" />
<link rel="stylesheet" href="<%=path%>/css/validationEngine.jquery.css" />
<link rel="stylesheet" type="text/css" href="<%=path%>/css/ylj.css" />

</head>
<body>
	<div class="bg"></div>
	<div class="pic">
		<img src="<%=path%>/img/titlex.png" />
	</div>

	<div class="bd">
		<div class="toptitle">
				<span>请在报名之前，先选择适合自己的组别。</span>
				<span class="rightspan">详情</span>
				<div class="tc">1、个人组：适合于个人参赛的选手，分为10公里、20公里、30公里等三个不同的距离。请根据自己的身体状况选择参赛距离。报名金额为：128元/人。<br>
					2、家庭组：适合于家庭组队的选手，最少2人组队参赛，最多6人参赛。比赛距离为30公里。报名金额为：108元/人。<br>
					3、团体组：适合于企业、社团、高校等组团参赛的选手，最少6人组队参赛，最多20人参赛。比赛距离为30公里。报名金额为：98元/人。
					<span class="closex">关闭</span>
				</div>
			</div>
		
		<input type="hidden" name="openid" value="${opid} " />
		<ul class="x-tab">
			<li class="lia">个人</li>
			<li id="fa">家庭</li>
			<li id="gr">团体</li>
		</ul>
			<form action="<%=path%>/user/singleApply" method="post" id="fo">
			<div class="xsa">
				<div class="biao">
					<div class="tiltex">
						<input type="hidden" name="signType" value="S" />
						<p>姓名</p>
						<p>Name</p>
					</div>
					<div class="dan">
						<input type="text" name="name" class="validate[required]"	data-prompt-position="inline"/>
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>性别</p>
						<p>Gender</p>
					</div>
					<div class="dan">
						<div class="rao m10px">
							<input type="radio" name="gender" class="xradio" value="M" checked/><span>男/Man</span>
						</div>
						<div class="rao">
							<input type="radio" name="gender" class="xradio" value="W" /><span>女/Woman</span>
						</div>
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>联系电话</p>
						<p>Contact</p>
					</div>
					<div class="dan">
						<input type="text" name="contact" class="validate[required,custom[phone]]"
							data-prompt-position="inline" />
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>国籍</p>
						<p>Country</p>

					</div>
					<div class="dan">
						<select name="country">
							<option value="中国大陆" selected="selected">中国大陆</option>
							<option value="中国香港/Hong Kong">中国香港/Hong Kong</option>
							<option value="中国澳门/Macau">中国澳门/Macau</option>
							<option value="中华台北/Chinese Taipei">中华台北/Chinese Taipei</option>
							<option value="其他国家/Other Country">其他国家/Other Country</option>
						</select>
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>证件类型</p>
						<p>ID Type</p>
					</div>
					<div class="dan">
						<div class="rao m10px">
							<input type="radio" name="cardType" value="ID"
								class="xradio validate[groupRequired[card]]" checked /><span>身份证</span>
						</div>
						<div class="rao m10px">
							<input type="radio" name="cardType" value="H"
								class="xradio validate[groupRequired[card]]" /><span>护照</span>
						</div>
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>证件号码</p>
						<p>ID Number</p>
					</div>
				    
					<div class="dan">
						<input type="text" placeholder="未满18岁选手请填监护人证件" name="cerNumber"
							class="validate[required]" data-prompt-position="inline" />
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>紧急联系人</p>
						<p>Emergency Contact</p>
					</div>
					<div class="dan">
						<input type="text" name="linkMan" />
					</div>
				</div>
				 <div class="biao">
					<div class="tiltex">
						<p>紧急联系人手机号</p>
						<p>Emergency phone</p>
					</div>
					<div class="dan">
						<input type="text" name="linkPhone" class="validate[required,custom[phone]]"
							data-prompt-position="inline" />
					</div>
				</div> 
				<div class="biao">
					<div class="tiltex">
						<p>出行方式</p>
						<p>Trip Mode</p>
					</div>
					<div class="dan">
						<div class="rao m10px">
							<input type="radio" name="tripMode" value="sd" class="xradio"
								checked="checked" /><span>自驾/Self-driving</span>
						</div>
						<div class="rao">
							<input type="radio" name="tripMode" value="pt" class="xradio" /><span>公共交通/Public
								Transportation</span>
						</div>
					</div>
				</div>
				<div class="biao">
					<div class="tiltex">
						<p>报名组别</p>
						<p>Race Group</p>
					</div>
					<div class="dan">
						<div class="rao m10px">
							<input type="radio" name="raceGroup" value="A"
								class="xradio validate[groupRequired[trip]]" /><span>10公里/km</span>
						</div>
						<div class="rao m10px">
							<input type="radio" name="raceGroup" value="B"
								class="xradio validate[groupRequired[trip]]" /><span>20公里/km</span>
						</div>
						<div class="rao">
							<input type="radio" name="raceGroup" value="C"
								class="xradio validate[groupRequired[trip]]" /><span>30公里/km</span>
						</div>
					</div>
				</div>
				<a href="#" class="btu" name="sub" onclick="javascript:ww();">提交/submit</a>
				<p class="text-center pone">组委会为选手们准备了绿色穿梭巴士</p>
				<p class="text-center ptwo">Free shuttle bus have been prepared
					by committee</p>
			</div>
		</form> 
		<div class="xsa display-n">
			<p class="pred">*您可为2-6名家庭成员报名</p>
			
			<c:if test="${userList.size()>0}">
				<p class="pyi">已报名选手:</p>
				<ul class="readyx">
					<c:if test="${applyType=='fa' }">
						<c:forEach items="${userList}" var="list" varStatus="s">
							<li><span class="mc">${list.name}</span> <span class="mun"><c:if
										test="${list.raceGroup=='C' }">30公里</c:if></span> <a
								href="<%=path%>/user/toUpdateUser?index=${s.index}" class="xg">修改</a></li>
	
						</c:forEach>
					</c:if>
	
				</ul>
				<%-- <p class="btu btu-x">还可以报名<c:out value="${6-userList.size()}"></c:out>位选手</p> --%>
				 <a href="<%=path%>/user/fSubmit"
					class="btu btu-x" id="subf">提交报名</a>
				<p class="text-center pl">
					你还可以报名<span><c:out value="${6-userList.size()}"></c:out></span>个选手
				</p>
			</c:if>
			
			<form id="fForm" action="<%=path%>/user/addf" method="post">
				<div>
					<div class="biao">
						<div class="tiltex">
							<input type="hidden" name="signType" value="F" />
							<p>姓名</p>
							<p>Name</p>
						</div>
						<div class="dan">
							<input type="hidden" name="sIndex" value="${param.index}" /> <input
								type="text" name="name" value="${updateUser.name }" />
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>性别</p>
							<p>Gender</p>
						</div>
						<div class="dan">
							<div class="rao m10px">

								<input type="radio" name="gender"
									<c:if test="${updateUser.gender=='M'}">checked</c:if>
									class="xradio" value="M" /><span>男/Man</span>
							</div>
							<div class="rao">
								<input type="radio" name="gender"
									<c:if test="${updateUser.gender=='W'}">checked</c:if>
									class="xradio" value="W" /><span>女/Woman</span>
							</div>
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>联系电话</p>
							<p>Contact</p>
						</div>
						<div class="dan">
							<input type="text" name="contact" value="${updateUser.contact }"
								class="validate[required,custom[phone]]" data-prompt-position="inline" />
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>国籍</p>
							<p>Country</p>

						</div>
						<div class="dan">
							<select name="country">
								<option value="中国大陆"
									<c:if test="${updateUser.country=='中国大陆'}">selected="selected"</c:if>>中国大陆</option>
								<option value="中国香港/Hong Kong"
									<c:if test="${updateUser.country=='中国香港/Hong Kong'}">selected="selected"</c:if>>中国香港/Hong
									Kong</option>
								<option value="中国澳门/Macau"
									<c:if test="${updateUser.country=='中国澳门/Macau'}">selected="selected"</c:if>>中国澳门/Macau</option>
								<option value="中华台北/Chinese Taipei"
									<c:if test="${updateUser.country=='中华台北/Chinese Taipei'}">selected="selected"</c:if>>中华台北/Chinese
									Taipei</option>
								<option value="其他国家/Other Country"
									<c:if test="${updateUser.country=='其他国家/Other Country'}">selected="selected"</c:if>>其他国家/Other
									Country</option>
							</select>
						</div>
					</div>
							<div class="biao">
					<div class="tiltex">
						<p>证件类型</p>
						<p>ID Type</p>
					</div>
					<div class="dan">
						<div class="rao m10px">
							<input type="radio" name="cardType" value="ID"
								class="xradio validate[groupRequired[card]]" checked /><span>身份证</span>
						</div>
						<div class="rao m10px">
							<input type="radio" name="cardType" value="H"
								class="xradio validate[groupRequired[card]]" /><span>护照</span>
						</div>
					</div>
				</div>
					<div class="biao">
						<div class="tiltex">
							<p>证件号码</p>
							<p>ID Number</p>
						</div>
						<div class="dan">
							<input type="text" placeholder="未满18岁选手请填监护人证件" name="cerNumber"
								value="${updateUser.cerNumber }" class="validate[required]"
								data-prompt-position="inline" />
							<!-- <p>请填写身份证号或护照号/PRC.IDcardNo. Or your PassportNo.</p> -->
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>紧急联系人</p>
							<p>Emergency Contact</p>
						</div>
						<div class="dan">
							<input type="text" name="linkMan" value="${updateUser.linkMan }" />
						</div>
					</div>
						<div class="biao">
						<div class="tiltex">
							<p>紧急联系人手机号</p>
							<p>Emergency phone</p>
						</div>
						<div class="dan">
							<input type="text" name="linkPhone" value="${updateUser.linkPhone }" class="validate[required,custom[phone]]"
								data-prompt-position="inline" />
						</div>
					</div> 
					<div class="biao">
						<div class="tiltex">
							<p>出行方式</p>
							<p>Trip Mode</p>
						</div>
						<div class="dan">
							<div class="rao m10px">
								<input type="radio" name="tripMode" value="sd" class="xradio"
									<c:if test="${updateUser.tripMode=='sd'}">checked="checked"</c:if> /><span>自驾/Self-driving</span>
							</div>
							<div class="rao">
								<input type="radio" name="tripMode" value="pt" class="xradio"
									<c:if test="${updateUser.tripMode=='pt'}">checked="checked"</c:if> /><span>公共交通/Public
									Transportation</span>
							</div>
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>报名组别</p>
							<p>Race Group</p>
						</div>
						<div class="dan">
							<div class="rao m10px" style="display: none;">
								<input type="radio" name="raceGroup" value="A"
									class="xradio validate[groupRequired[trip]]" /><span>10公里/km</span>
							</div>
							<div class="rao m10px" style="display: none;">
								<input type="radio" name="raceGroup" value="B"
									class="xradio validate[groupRequired[trip]]" /><span>20公里/km</span>
							</div>
							<div class="rao">
								<input type="radio" name="raceGroup" value="C"
									class="xradio validate[groupRequired[trip]]" checked /><span>30公里/km</span>
							</div>
						</div>
						<p class="ttx">家庭/团队报名只能参与30公里组</p>
					</div>
					<a href="javascript:addf();" class="btu" name="save">保存报名信息</a>
					<%--  <a
						href="<%=path%>/user/fSubmit" class="btu" name="sub">提交/submit</a> --%>
					<p class="text-center pone">组委会为选手们准备了绿色穿梭巴士</p>
					<p class="text-center ptwo">Free shuttle bus have been prepared
						by committee</p>
				</div>
			</form>


		</div>
		<div class="xsa display-n">
			<p class="pred">*您可为6-20名团队成员报名</p>
			<c:if test="${userList.size()>0}">
				<p class="pyi">已报名选手:</p>
				<ul class="readyx">
					<c:forEach items="${userListg}" var="list" varStatus="s">
						<li><span class="mc">${list.name}</span> <span class="mun"><c:if
									test="${list.raceGroup =='C'}">30公里</c:if></span> <a
							href="<%=path%>/user/togrUpdateUser?index=${s.index}" class="xg">修改</a></li>
	
					</c:forEach>
				</ul>
				<%-- <p class="btu btu-x">还可以报名<c:out value="${20-userListg.size()}"></c:out>位选手</p> --%>
				 <a
					href="<%=path%>/user/gSubmit" class="btu" id="subg">提交报名</a>
			
				<p class="text-center pl">
					你还可以报名<span><c:out value="${20-userListg.size()}"></c:out></span>个选手
				</p>
			</c:if>
			<form id="gForm" action="<%=path%>/user/addg" method="post">
				<div>
					<div class="biao">
						<div class="tiltex">
							<input type="hidden" name="signType" value="G" />
							<p>姓名</p>
							<p>Name</p>
						</div>
						<div class="dan">
							<input type="hidden" name="sIndex" value="${param.index}" /> <input
								type="text" name="name" value="${updateUser.name }" />
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>性别</p>
							<p>Gender</p>
						</div>
						<div class="dan">
							<div class="rao m10px">

								<input type="radio" name="gender"
									<c:if test="${updateUser.gender=='M'}">checked</c:if>
									class="xradio" value="M" /><span>男/Man</span>
							</div>
							<div class="rao">
								<input type="radio" name="gender"
									<c:if test="${updateUser.gender=='W'}">checked</c:if>
									class="xradio" value="W" /><span>女/Woman</span>
							</div>
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>联系电话</p>
							<p>Contact</p>
						</div>
						<div class="dan">
							<input type="text" name="contact" value="${updateUser.contact }"
								class="validate[required,custom[phone]]" data-prompt-position="inline" />
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>国籍</p>
							<p>Country</p>

						</div>
						<div class="dan">
							<select name="country">
								<option value="中国大陆"
									<c:if test="${updateUser.country=='中国大陆'}">selected="selected"</c:if>>中国大陆</option>
								<option value="中国香港/Hong Kong"
									<c:if test="${updateUser.country=='中国香港/Hong Kong'}">selected="selected"</c:if>>中国香港/Hong
									Kong</option>
								<option value="中国澳门/Macau"
									<c:if test="${updateUser.country=='中国澳门/Macau'}">selected="selected"</c:if>>中国澳门/Macau</option>
								<option value="中华台北/Chinese Taipei"
									<c:if test="${updateUser.country=='中华台北/Chinese Taipei'}">selected="selected"</c:if>>中华台北/Chinese
									Taipei</option>
								<option value="其他国家/Other Country"
									<c:if test="${updateUser.country=='其他国家/Other Country'}">selected="selected"</c:if>>其他国家/Other
									Country</option>
							</select>
						</div>
					</div>
							<div class="biao">
					<div class="tiltex">
						<p>证件类型</p>
						<p>ID Type</p>
					</div>
					<div class="dan">
						<div class="rao m10px">
							<input type="radio" name="cardType" value="ID"
								class="xradio validate[groupRequired[card]]" checked /><span>身份证</span>
						</div>
						<div class="rao m10px">
							<input type="radio" name="cardType" value="H"
								class="xradio validate[groupRequired[card]]" /><span>护照</span>
						</div>
					</div>
				</div>
					<div class="biao">
						<div class="tiltex">
							<p>证件号码</p>
							<p>ID Number</p>
						</div>
						<div class="dan">
							<input type="text" placeholder="未满18岁选手请填监护人证件" name="cerNumber"
								value="${updateUser.cerNumber }" class="validate[required]"
								data-prompt-position="inline" />
							<!-- <p>请填写身份证号或护照号/PRC.IDcardNo. Or your PassportNo.</p> -->
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>紧急联系人</p>
							<p>Emergency Contact</p>
						</div>
						<div class="dan">
							<input type="text" name="linkMan" value="${updateUser.linkMan }" />
						</div>
					</div>
						<div class="biao">
						<div class="tiltex">
							<p>紧急联系人手机号</p>
							<p>Emergency phone</p>
						</div>
						<div class="dan">
							<input type="text" name="linkPhone" value="${updateUser.linkPhone }" class="validate[required,custom[phone]]"
								data-prompt-position="inline" />
						</div>
					</div> 
					<div class="biao">
						<div class="tiltex">
							<p>出行方式</p>
							<p>Trip Mode</p>
						</div>
						<div class="dan">
							<div class="rao m10px">
								<input type="radio" name="tripMode" value="sd" class="xradio"
									<c:if test="${updateUser.tripMode=='sd'}">checked="checked"</c:if> /><span>自驾/Self-driving</span>
							</div>
							<div class="rao">
								<input type="radio" name="tripMode" value="pt" class="xradio"
									<c:if test="${updateUser.tripMode=='pt'}">checked="checked"</c:if> /><span>公共交通/Public
									Transportation</span>
							</div>
						</div>
					</div>
					<div class="biao">
						<div class="tiltex">
							<p>报名组别</p>
							<p>Race Group</p>
						</div>
						<div class="dan">
							<div class="rao m10px" style="display: none;">
								<input type="radio" name="raceGroup" value="A"
									class="xradio validate[groupRequired[trip]]" /><span>10公里/km</span>
							</div>
							<div class="rao m10px" style="display: none;">
								<input type="radio" name="raceGroup" value="B"
									class="xradio validate[groupRequired[trip]]" /><span>20公里/km</span>
							</div>
							<div class="rao">
								<input type="radio" name="raceGroup" value="C"
									class="xradio validate[groupRequired[trip]]" checked /><span>30公里/km</span>
							</div>
						</div>
						<p class="ttx">家庭/团队报名只能参与30公里组</p>
					</div>
					<a href="javascript:addg();" class="btu" name="save">保存报名信息</a>
					<%--  <a
						href="<%=path%>/user/gSubmit" class="btu" name="sub">提交</a> --%>
					<p class="text-center pone">组委会为选手们准备了绿色穿梭巴士</p>
					<p class="text-center ptwo">Free shuttle bus have been prepared
						by committee</p>
				</div>
			</form>

		</div>



	</div>

	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery-2.2.3.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=path%>/js/adddate.js"></script>
	<script type="text/javascript"
		src="<%=path%>/js/jquery.validationEngine-zh_CN.js"></script>
	<script type="text/javascript"
		src="<%=path%>/js/jquery.validationEngine.js"></script>
	<script type="text/javascript" src="<%=path%>/js/jquery.validate.js"></script>
	<script type="text/javascript" src="<%=path%>/js/messages_zh.js"></script>
	<script type="text/javascript">
		//微信jssdk config
		wx.config({
			debug : false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
			appId : '${appid}', // 必填，公众号的唯一标识
			timestamp : '${timestamp}', // 必填，生成签名的时间戳
			nonceStr : '${noncestr}', // 必填，生成签名的随机串
			signature : '${signature}',// 必填，签名，见附录1
			jsApiList : [ 'checkJsApi', //判断当前客户端版本是否支持指定JS接口
			'onMenuShareTimeline', //分享给好友
			'onMenuShareAppMessage', //分享到朋友圈
			'onMenuShareQQ', //分享到QQ
			'onMenuShareWeibo' //分享到微博
			]
		// 必填，需要使用的JS接口列表，所有JS接口列表见附录2
		});
		wx
				.ready(function() { //ready函数用于调用API，如果你的网页在加载后就需要自定义分享和回调功能，需要在此调用分享函数。//如果是微信游戏结束后，需要点击按钮触发得到分值后分享，这里就不需要调用API了，可以在按钮上绑定事件直接调用。因此，微信游戏由于大多需要用户先触发获取分值，此处请不要填写如下所示的分享API
					wx
							.onMenuShareTimeline({ //分享到朋友圈的API  
								title : '抱走宝山挑战赛', // 分享标题
								link : 'http://run.xuanzhen-tech.com/wx_project/user/toRight.html', // 分享链接
								imgUrl : 'http://run.xuanzhen-tech.com/wx_project/img/titlex.png', // 分享图标
								success : function() {
									// 用户确认分享后执行的回调函数
								},
								cancel : function() {
									// 用户取消分享后执行的回调函数
								}
							});
					wx
							.onMenuShareAppMessage({//分享到朋友 
								title : '抱走宝山', // 分享标题
								desc : '抱走宝山挑战赛火热报名中', // 分享描述
								link : 'http://run.xuanzhen-tech.com/wx_project/user/toRight.html', // 分享链接
								imgUrl : 'http://run.xuanzhen-tech.com/wx_project/img/titlex.png', // 分享图标
								type : 'link', // 分享类型,music、video或link，不填默认为link
								dataUrl : '', // 如果type是music或video，则要提供数据链接，默认为空
								success : function() {
									// 用户确认分享后执行的回调函数
								},
								cancel : function() {
									// 用户取消分享后执行的回调函数
								}
							});
				});
		wx.error(function(res) {
			//alert(res.errMsg); //打印错误消息。及把 debug:false,设置为debug:ture就可以直接在网页上看到弹出的错误提示
		});
		var msg = "";
		msg = "${message}";
		var list = 0;
		var list = "${userList.size()}";
		var listg = 0;
		var listg = "${userListg.size()}";
		$('document').ready(function() {
			/* 		alert('signature:${signature}'); */
			$("#fo").validationEngine();
			$('.x-tab li').each(function(index) {
				$(this).click(function() {
					$(this).addClass('lia').siblings().removeClass('lia');
					$(".xsa").css({
						"display" : "none"
					});
					$(".xsa").eq(index).css({
						"display" : "block"
					});
				})
			});
			var aType = "${applyType}";
			if (aType == "fa") {
				$("#fa").click();

			} else if (aType == "gr") {
				$("#gr").click();

			}
			$("#subf").click(function() {
				if (list < 2) {
					alert("报名人数不足");
					return false;
				}
			});
			$("#subg").click(function() {
				if (listg < 6) {
					alert("报名人数不足");
					return false;
				}
			});
			$('.rightspan').click(function(){
		    	$('.tc').show();
		    });
		    $('.closex').click(function(){
		    	$('.tc').hide();
		    });

		});
		function ww() {
			if(checkForm(document.forms[0])){
				$("#fo").submit();
			}

		};
		function addf() {
			if (list >= 6) {
				alert("报名人数不足");
				return false;
			} else if(!checkForm(document.forms[1])){
				
			}else {
				$("#fForm").submit();
			}
		};
		function addg() {
			if (listg >= 20) {
				alert("报名人数已满");
				return false;
			}  else if(!checkForm(document.forms[2])){
				
			}else {
				$("#gForm").submit();
			}
		}

		function add() {
			$("#fo").submit();

		};
		
		function checkForm(form) {
			var mobileRegex = /^(((1[3456789][0-9]{1})|(15[0-9]{1}))+\d{8})$/;
			var phone=form.contact.value;
			if (mobileRegex.test(phone)) {
			} else {
				alert('联系电话输入不正确');
				return false;
			}
			
			/**var regIdNo = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
			var idNo = form.cerNumber.value;
			if (!regIdNo.test(idNo)) {
				alert('证件号码填写有误');
				return false;
			}*/
			
			
			return true;
		}
	</script>
</body>
</html>